import React, { useContext } from 'react'

import { CountContext } from '@/pages/hooks'

const CounterComponent = () => {
    const count = useContext(CountContext)
    return (
        <>
            <div>子组件：</div>
            <div>{count + 100}</div>
      </>
    )
}
export default CounterComponent
